/*******************************************************************************
 * Copyright (c) 2007 University of Oslo.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     University of Oslo - initial API and implementation
 *******************************************************************************/

package com.cea.papyrus.diagram.sequence.sedi.model.command;

/**
 * Structure that indicates a particular point in an ordered
 * collection of packaged elements.
 * 
 * @author frankd@ifi.uio.no
 */
public class PackagedElementPosition {
	
	/** The package owning the packaged element. */
	private org.eclipse.uml2.uml.Package pkg;
	
	/** An index into package.getPackagedElements(). */
	private int position;
	
	public PackagedElementPosition() {
	}
	public PackagedElementPosition(final org.eclipse.uml2.uml.Package pkg, final int position) {
		this.pkg = pkg;
		this.position = position;
	}
	
	public org.eclipse.uml2.uml.Package getPackage() {
		return pkg;
	}
	public void setPackage(org.eclipse.uml2.uml.Package pkg) {
		this.pkg = pkg;
	}
	public int getPosition() {
		return position;
	}
	public void setPosition(int position) {
		this.position = position;
	}
}
